package com.swpu.service_food.service;

import cn.hutool.core.date.DateTime;
import com.swpu.service_food.entity.FoodRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.swpu.service_food.entity.vo.FoodVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chaichai
 * @since 2024-01-27
 */
public interface FoodRecordService extends IService<FoodRecord> {

    void addFoodRecord(FoodVo foodVo, String openid);

    List getFoodRecordeByType(Integer dietType, String openid);

    void deleteFoodRecordById(String id);

    Integer getFoodRecordNum(String openid);

    Integer getFoodCaloriesByDate(String openid, DateTime parseDate);
}
